package com.ytc.model;

import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsAutoIncrement;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsKey;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import lombok.Data;

@Data
@Table(name = "press")
public class Press {
    @IsAutoIncrement //自增
    @IsKey //主键
    @Column(length = 20)
    private Integer pressid;
    @Column(length = 20)
    private String pressname;

    public Integer getPressid() {
        return pressid;
    }

    public void setPressid(Integer pressid) {
        this.pressid = pressid;
    }

    public String getPressname() {
        return pressname;
    }

    public void setPressname(String pressname) {
        this.pressname = pressname == null ? null : pressname.trim();
    }
}